﻿using System;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            ConsoleApp2 obj = new ConsoleApp2();
            Console.Write("请输入月份");
            string yf =(Console.ReadLine());
            Console.Write("请输入张数");
            int zs = int.Parse(Console.ReadLine());
            Console.Write("请输入单价");
            int dj = int.Parse(Console.ReadLine());

            obj.Oun

            
           DataTime day = DataTime.ParseExact();

            static void Main(string[] args)
        {
            //ConsoleApp2 n = new ConsoleApp2();

            Console.Write("请输入月份");
            int yf = int.Parse(Console.ReadLine());

            Console.Write("请输入张数");
            int zs = int.Parse(Console.ReadLine());

            switch (yf)
            {
                case 7:
                case 8:
                case 9:
                case 10:
                    if (zs > 20)

                        Console.WriteLine("优惠率15% " + "优惠后" + "票价为" +  dj * 0.85 * zs);
                    else
                        Console.WriteLine("优惠率5% " + "优惠后" + "票价为" + dj * 0.95 * zs);
                    break;

                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 11:
                    if (zs > 20)
                        Console.WriteLine("优惠率30% " + "优惠后" + "票价为" + dj * 0.7 * zs);
                    else
                        Console.WriteLine("优惠率20% " + "优惠后" + "票价为" + dj * 0.8 * zs);
                    break;

                case 6:
                case 12:
                    Console.WriteLine("优惠率10% " + "票价为" + dj * 0.9 * zs);
                    break;



            }
        }
        Console.ReadKey();

    }

   
 }

        

 
      


    
